﻿using UnityEngine;
using System.Collections;

public class CameraMenu : MonoBehaviour 
{
	public GUIStyle myGui;
	public Texture tex1;
	public Texture tex2;
	public Texture background;
	public Texture title;
	public AudioClip soundfx;	

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI () 
	{	
		GUI.DrawTexture(new Rect(0,0,Screen.width, Screen.height), background);	
		
		GUI.DrawTexture(new Rect((Screen.width/100)*(27),(Screen.height/100)*(10), 400, 100), title);	
	
		if(GUI.Button(new Rect((Screen.width/100)*(10),(Screen.height/100)*(45), 300, 275), tex1, myGui)) 
		{
			Application.LoadLevel("Stage0");
			audio.Play();
			Player.score = 0;
			Main._state = 0;
			Player.have_key_brass = false;
			Player.have_key_silver = false;
			Player.have_key_gold = false;
		}
		
		if(GUI.Button(new Rect((Screen.width/100)*(50),(Screen.height/100)*(45), 300, 275), tex2, myGui)) 
		{
			audio.Play();
			Application.LoadLevel("Credits");
		}
		
		
	}
}
